package com.scmp.provider.bap.entity;

import javax.validation.constraints.NotBlank;

/**
 * 南航内部和南航外部 对接 通用api返回实体
 *
 * @author: 龙小南
 * @Date: 2023/2/20 17:09
 * @Version 1.0[当前版本号]
 *
 * @version 1.0 2023/2/20 17:09 龙小南 新建类[说明]
 */
public class ProviderResult {

    /** 签名串 */
    @NotBlank
    private String signMsg;

    /**
     * 返回值状态
     * 200：表示成功
     * 401：未授权
     * 403：禁止访问
     * 555：其他异常
     */
    @NotBlank
    private String code;

    /** 响应信息，code!=200有值，错误描述 */
    private String msg;

    /** 编码格式,默认UTF-8 */
    private String charset="utf-8";

    /** 响应时间戳yyyy-MM-dd HH:mm:ss */
    private String timestamp;

    /** 当前请求生成的日志ID */
    private String traceId;

    /** 需要展示的数据信息, json格式 */
    private String data;

    public String getSignMsg() {
        return signMsg;
    }

    public void setSignMsg(String signMsg) {
        this.signMsg = signMsg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getTraceId() {
        return traceId;
    }

    public void setTraceId(String traceId) {
        this.traceId = traceId;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
